
<!--
<div class="cart_title">购物车</div>
<table>
  <% @cart.line_items.each do |item| %>
    <tr>
      <td><%= image_tag(item.product.image_url, id:'list_image') %></td>
      <td><%= item.product.title %></td>
	  <td>&times;<%= item.quantity %></td>
      <td class="item_price"><%= number_to_currency(item.total_price) %></td>
	  <td><%= button_to '-', item, :method => :delete,:name => 'decrease', :remote => true %></td>
	  <td><%= button_to '+', line_items_path(:product_id => item.product), :method => :post, :remote => true %></td>
	  <td><%= button_to '删除', item, :method => :delete, data: { confirm: "确定要删吗?" },:remote => true %></td>

    </tr>
  <% end %>

  <tr class="total_line_0">
    <td colspan="2">Total</td>
    <td class="total_cell_0"><%= number_to_currency(@cart.total_price) %></td>
  </tr>

</table>

<%= button_to '清空购物车', @cart, :method => :delete,
    data: { confirm: "确定要删吗?" } %>

 -->








<% if @cart%>
<div id= "cart_show">
<%= render @cart %>
</div>
<% else %>
<h3>@_@  您的购物车是空的，赶快去购物吧</h3>
<% end %>